package com.abso.mp3tunes.locker.ui.viewers;

import com.abso.mp3tunes.locker.core.data.Album;

/**
 * A specialized label provider for the artist tree viewer.
 */
public class ArtistViewerLabelProvider extends LockerViewerLabelProvider {

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.abso.mp3tunes.locker.ui.viewers.LockerViewerLabelProvider#getText(java.lang.Object)
	 */
	public String getText(Object element) {
		if (element instanceof Album) {
			return getAlbumText((Album) element, false);
		} else {
			return super.getText(element);
		}
	}

}
